
#ifndef QR_ELEMENT_H
#define QR_ELEMENT_H

#include "qr-const.h"
#include "bit-stream.h"

C_BEGIN_DECLS

typedef struct _QRElement QRElement;
struct _QRElement
{
	QRMode _mode;
	unsigned char* _source;
	int _size;
	QRElement* _next;
};

QRElement* qr_element_new(QRMode mode, unsigned char* source, int size);
void qr_element_destroy(QRElement* qr_element);
BitStream* qr_element_encode(QRElement* qr_element, int version);

C_END_DECLS

#endif	// QR_ELEMENT_H

